// 使用模拟的Vue Router实现
import { createRouter, createWebHistory } from './mock-vue-router.js'
import HomeView from './views/HomeView.vue'
import ModelManagementView from './views/ModelManagementView.vue'
import TextGenerationView from './views/TextGenerationView.vue'
import FineTuningView from './views/FineTuningView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/models',
    name: 'modelManagement',
    component: ModelManagementView
  },
  {
    path: '/generate',
    name: 'textGeneration',
    component: TextGenerationView
  },
  {
    path: '/finetune',
    name: 'fineTuning',
    component: FineTuningView
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router